package com.tcwong.controller;

import com.tcwong.mapper.UserMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Description
 *
 * @author tcwong
 * @date 2022/1/15
 * Since 1.8
 */
@RestController
@RequestMapping("/user")
public class UserController {


    @Resource private UserMapper userMapper;

    @GetMapping("/getUser")
    public Object getUser(){
        return userMapper.getUser("hello");
    }
}
